package com.zhss.eshop.auth.domain;

import java.util.Date;
import java.util.List;

/**
 * @Description
 * @Author hanmeng
 * @Date 5:54 2021/4/4
 * @Version 1.0
 **/
public class AccountDTO {
    /**
     * id
     */
    private Long id;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 员工姓名
     */
    private String name;
    /**
     * 账号备注
     */
    private String remark;
    /**
     * 创建时间
     */
    private Date gmtCreate;
    /**
     * 修改时间
     */
    private Date gmtModified;
    /**
     * 账号和角色的关联关系
     */
    private List<AccountRoleRelationshipDTO> roleRelations;
    /**
     * 账号和权限的关联关系
     */
    private List<AccountPriorityRelationshipDTO> priorityRelations;

    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Date getGmtCreate() {
        return gmtCreate;
    }
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }
    public Date getGmtModified() {
        return gmtModified;
    }
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
    public List<AccountRoleRelationshipDTO> getRoleRelations() {
        return roleRelations;
    }
    public void setRoleRelations(List<AccountRoleRelationshipDTO> roleRelations) {
        this.roleRelations = roleRelations;
    }
    public List<AccountPriorityRelationshipDTO> getPriorityRelations() {
        return priorityRelations;
    }
    public void setPriorityRelations(List<AccountPriorityRelationshipDTO> priorityRelations) {
        this.priorityRelations = priorityRelations;
    }

    @Override
    public String toString() {
        return "AccountDTO [id=" + id + ", username=" + username + ", password=" + password + ", name=" + name
                + ", remark=" + remark + ", gmtCreate=" + gmtCreate + ", gmtModified=" + gmtModified
                + ", roleRelations=" + roleRelations + ", priorityRelations=" + priorityRelations + "]";
    }
}
